package com.example.lp.lpmvvm.one.holder;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.example.lp.lpmvvm.one.viewmodel.BaseViewModel;
import com.example.lp.lpmvvm.one.viewmodel.IBaseView;

/**
 * Author by lp,on 2021/6/15/015,17:37.
 */
public class BaseHolder extends RecyclerView.ViewHolder {
    IBaseView view;

    public BaseHolder(IBaseView itemView) {
        super((View) itemView);
        this.view = itemView;
    }

    public void bind(BaseViewModel viewModel) {
        view.setData(viewModel);
    }
}
